module.exports = function(sequelize, DataTypes) {
    return sequelize.define("product",
      {
        id: {
          type: DataTypes.INTEGER,
          allowNull: false,
          unique: true,
          primaryKey: true,
          autoIncrement: true
        },
        product_img: DataTypes.STRING,
        product_name: DataTypes.STRING,
        product_price: DataTypes.STRING,
        product_want: DataTypes.INTEGER,
        from: DataTypes.INTEGER,
        is_delete: {
          type: DataTypes.INTEGER,
          allowNull: false,
          defaultValue: 0
        },
        create_at: DataTypes.STRING,
        update_at: DataTypes.STRING
      },
      {
        underscored: true,
        freezeTableName: true,
        createdAt: false,
        updatedAt: false
      }
    );
  };
  